package eu.webhib.extgui.data.intf;

/**
 * Holds the view data of an item shown in a GUI components (e.g. tree node).
 * An item either holds an transient label (e.g. label of a tree node) or represent a persistent
 * entity from database.
 */
public interface DataItem {

   /**
    * The display label for this item, e.g. used as label in the tree node
    */
   String getLabel();

   /**
    * Whether this item is identical (equal) to the given tree item
    * @param other Other item to compare
    * @return whether this item is identical to the other DataItem
    */
   public boolean identical(DataItem other);
}
